/*
 * @(#) EvaStatisticAction.java 2011-10-8
 *
 * Copyright (c) 2011, Strong Technology. All Rights Reserved.
 * Strong Technology. CONFIDENTIAL
 */
package cn.strong.gweva.statistic.presentation.action;

import cn.strong.gweva.common.business.entity.PagerEntity;
import cn.strong.gweva.common.presentation.action.AjaxBaseAction;
import cn.strong.gweva.statistic.business.entity.EvaStatisticSearchEntity;
import cn.strong.gweva.statistic.business.service.EvaStatisticService;

/**
 * 考核结果统计
 * 
 * @author lilanfei
 * @version 1.0
 * @since 2011-10-8
 */
public class EvaStatisticAction extends AjaxBaseAction
{
	/** serialVersionUID */
	private static final long serialVersionUID = -8505381077831093526L;

	/** 考核结果统计接口 */
	private EvaStatisticService evaStatisticService;
	
	/** 检索条件 */
	private EvaStatisticSearchEntity searchEntity;
	/** 检索结果（分页） */
	private PagerEntity pagerEntity;
	
	/**
	 * 列表页面
	 * 
	 * @return
	 */
	public String list()
	{
		return LIST;
	}
	
	/**
	 * 检索
	 * 
	 * @return
	 */
	public String search()
	{
		try
		{
			this.setPagerEntity(this.getEvaStatisticService().searchEvaStatisticPage(
					this.getPagerEntity(), this.getSearchEntity()));
		}
		catch (Exception e)
		{
			return processException(e);
		}
		return list();
	}
	
	/**
	 * 导出
	 * 
	 * @return
	 */
	public String export()
	{
		try
		{
		}
		catch (Exception e)
		{
			return processException(e);
		}
		return null;
	}

	/**
	 * 获取考核结果统计接口
	 * @return 考核结果统计接口
	 */
	public EvaStatisticService getEvaStatisticService()
	{
		return evaStatisticService;
	}
	/**
	 * 设定考核结果统计接口
	 * @param evaStatisticService 考核结果统计接口
	 */
	public void setEvaStatisticService(EvaStatisticService evaStatisticService)
	{
		this.evaStatisticService = evaStatisticService;
	}
	/**
	 * 获取检索条件
	 * @return 检索条件
	 */
	public EvaStatisticSearchEntity getSearchEntity()
	{
		return searchEntity;
	}
	/**
	 * 设定检索条件
	 * @param searchEntity 检索条件
	 */
	public void setSearchEntity(EvaStatisticSearchEntity searchEntity)
	{
		this.searchEntity = searchEntity;
	}
	/**
	 * 获取检索结果（分页）
	 * @return 检索结果（分页）
	 */
	public PagerEntity getPagerEntity()
	{
		return pagerEntity;
	}

	/**
	 * 设定检索结果（分页）
	 * @param pagerEntity 检索结果（分页）
	 */
	public void setPagerEntity(PagerEntity pagerEntity)
	{
		this.pagerEntity = pagerEntity;
	}
}
